<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- 引入框架 -->
		<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
		<!-- 引入自身 -->
		<script src="js/adminm.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="css/adminm.css" />
		<title></title>
	</head>

	<!-- //行工具栏模板 -->
	<script type="text/html" id="han_caozuo">
	{{# if(d.authority == '99'){ }}
		<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="update">修改</a>
		<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="look">查看</a>
		<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="del">删除账号</a>
		{{# } else { }}
			<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="look">查看</a>
			{{# } }}
	</script>
	<!-- //模板 -->

	<!-- //顶部工具栏 -->
	<script type="text/html" id="toolbarDemo">
		<div class="layui-btn-group demoTable">
			<button type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="addzh">添加账号
			</button>
		</div>
	</script>
	<!-- //顶部工具栏 -->

	<body>
		<div class="background">
			<div class="admin_xx_ban">
				<div class="admin_xxban">
					<blockquote class="layui-elem-quote ">管理员账号：<span class="layui-badge layui-bg-orange"
							id="admin_xx_username">
							请先选择一位管理员查看
						</span> &nbsp;<span id="admin_hz_gj" class="layui-badge layui-bg-black">高级管理</span><span
							id="admin_hz_pt" class="layui-badge">普通管理</span></blockquote>
					<blockquote class="layui-elem-quote">管理员名字：<span class="layui-badge layui-bg-green"
							id="admin_xx_name">
							请先选择一位管理员查看
						</span></blockquote>
					<blockquote class="layui-elem-quote">管理员密码：<span class="layui-badge layui-bg-cyan"
							id="admin_xx_password">
							请先选择一位管理员查看
						</span></blockquote>
					<blockquote class="layui-elem-quote">管理员性别：<span class="layui-badge layui-bg-blue"
							id="admin_xx_sex">
							请先选择一位管理员查看
						</span></blockquote>
					<blockquote class="layui-elem-quote">管理员邮箱：<span class="layui-badge layui-bg-black"
							id="admin_xx_mail">
							请先选择一位管理员查看
						</span></blockquote>
					<blockquote class="layui-elem-quote">管理员登录次数：<span class="layui-badge layui-bg-blue"
							id="admin_xx_cishu">
							请先选择一位管理员查看
						</span></blockquote>
					<blockquote class="layui-elem-quote">管理员入职日期：<span class="layui-badge layui-bg-green"
							id="admin_xx_sr">
							请先选择一位管理员查看
						</span></blockquote>
				</div>
			</div>
			<div class="admin_zh_ban">
				<div class="table_kz">
					<table class="layui-table" lay-data="{height: 500, url:'', toolbar: '#toolbarDemo', id:'table_id'}"
						lay-filter="table_filter">
						<thead>
							<tr>
								<th lay-data="{field:'id', width:180, sort: true}">ID</th>
								<th lay-data="{field:'username'}">账户</th>
								<th lay-data="{field:'name',width:200}">姓名</th>
								<th lay-data="{field:'',width:250,toolbar:'#han_caozuo',align:'center'}">操作</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>

		<!-- 弹出层表单修改信息 -->
		<form class="layui-form layui-form-pane adminm_update_form" id="admin_update_modify"
			style="display: none;margin-top: 20px;">
			<div class="layui-form-item">
				<label class="layui-form-label">修改账号</label>
				<div class="layui-input-block">
					<input type="text" id="username" name="username" required lay-verify="required" autocomplete="off"
						placeholder="" class="layui-input" readonly>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">修改名字</label>
				<div class="layui-input-block">
					<input type="text" id="name" name="name" autocomplete="off" required lay-verify="required"
						placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">修改密码</label>
				<div class="layui-input-block">
					<input type="text" id="password" name="password" required lay-verify="required" autocomplete="off"
						placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">修改性别</label>
				<div class="layui-input-block">
					<input type="radio" id="nv" name="sex" value="男" title="男">
					<input type="radio" id="nan" name="sex" value="女" title="女">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">修改邮箱</label>
				<div class="layui-input-block">
					<input type="text" id="email" name="email" lay-verify="email" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			</div>
			<button class="layui-btn" id="admin_update_tj" style="display: none;" lay-submit
				lay-filter="admin_update_tj">立即提交</button>
		</form>

		<!-- 弹出层表单添加信息 -->
		<form class="layui-form layui-form-pane adminm_update_form" id="admin_add_modify"
			style="display: none;margin-top: 20px;">
			<div class="layui-form-item">
				<label class="layui-form-label">账号</label>
				<div class="layui-input-block">
					<input type="text" id="addusername" name="username" required lay-verify="required"
						autocomplete="off" placeholder="请输入一个可用的账号" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">名字</label>
				<div class="layui-input-block">
					<input type="text" name="name" autocomplete="off" required lay-verify="required"
						placeholder="请输入一个霸气的昵称" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">密码</label>
				<div class="layui-input-block">
					<input type="text" name="password" required lay-verify="required" autocomplete="off"
						placeholder="请输入一个密码" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">性别</label>
				<div class="layui-input-block">
					<input type="radio" name="sex" value="男" title="男">
					<input type="radio" name="sex" value="女" title="女">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">入职日期</label>
				<div class="layui-input-inline">
					<input type="text" name="date" id="date" lay-verify="date" placeholder="yyyy-MM-dd"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item" style="margin-top: 15px;">
				<label class="layui-form-label">邮箱</label>
				<div class="layui-input-block">
					<input type="text" name="email" lay-verify="email" placeholder="请输入一个可用的邮箱" autocomplete="off"
						class="layui-input">
				</div>
			</div>
			</div>
			<button class="layui-btn" id="admin_add_tj" style="display: none;" lay-submit
				lay-filter="admin_add_tj">立即提交</button>
			<button type="reset" id="admin_re" style="display: none;" class="layui-btn layui-btn-primary">重置</button>
		</form>
	</body>
</html>
